<template>
  <div>
    <h4>这是个父组件</h4>
    <p>这是父组件中的num{{ num }}-----{{ num2 }}</p>
    <hr>
    <!-- <son
      :aa="num"
      :bb="num2"
      @update:aa="val => num = val"
      @update:bb="val => num2 = val"
    /> -->
    <son :aa.sync="num" :bb.sync="num2" />
  </div>
</template>

<script>
import Son from './Son.vue'
export default {
  components: { Son },
  data() {
    return {
      num: 100,
      num2: 200
    }
  }
}
</script>

<style>

</style>
